import * as React from 'react';
import { connect } from 'src/app/redux/connect/Connect';
import { openLoading, closeLoading } from 'src/app/redux/actions/Loading.actions';
interface Props extends React.Props<any> {
  Loading?: any
  openLoading?: () => void;
  closeLoading?: () => void;
}
@connect(state => state, { openLoading, closeLoading })
export default class  ViewsComponent extends React.PureComponent<Props, any> {
  time: number;
  /* openLoading = () => {
    const { open } = this.props.Loading;
    if (open) {
      this.props.closeLoading!();
    }
    this.props.openLoading!();
  }
  closeLoading = () => {
    this.props.closeLoading!();
  } */
}